package ink.teamwork.battery.repository;

import ink.teamwork.battery.entity.Coupon;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CouponRepository extends JpaRepository<Coupon, Long> {

    List<Coupon> findAllByOpenId(String openId,Sort sort);

}